import request from '@/utils/request'

export default {
  //查询
  getOrderList(page, limit, orderQuery) {
    return request({
      url: `/eduorder/order/getOrderPageCondition/${page}/${limit}`,
      method: 'post',
      //data表示把对象转换json进行传递到接口里面
      data: orderQuery
    })
  },
  //删除
  deleteOrderId(id) {
    return request({
      url: `/eduorder/order/deleteOrder/${id}`,
      method: 'delete',
    })
  },
  //查询
  getPayLogList(page, limit, payQuery) {
    return request({
      url: `/eduorder/pay-log/getPayPageCondition/${page}/${limit}`,
      method: 'post',
      //data表示把对象转换json进行传递到接口里面
      data: payQuery
    })
  },
  //删除
  deletePayLogId(id) {
    return request({
      url: `/eduorder/pay-log/deletePayLog/${id}`,
      method: 'delete',
    })
  },
}
